﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Code.Models;

namespace Company.Web.Areas.Manage.Models.MessageModels
{
    public class IndexModel
    {
        /// <summary>
        /// 分页，页码
        /// </summary>
        public int? ID { get; set; }
        /// <summary>
        /// 分页，每页数
        /// </summary>
        public int? A { get; set; }
        public int Size { get; set; }
        public int SumCount { get; set; }
        public IndexSerchModel Serch { get; set; }
        public List<SelectListItem> States { get; set; }
        public List<SelectListItem> Languages { get; set; }
        public IEnumerable<MessageItem> Msgs { get; set; }
    }

    public class IndexSerchModel
    {
        public string Name { get; set; }
        public string Title { get; set; }
        public MessageState? State { get; set; }
        public Language? Language { get; set; }
        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }
    }

    public class MessageItem
    {
        public long ID { get; set; }
        public string Name { get; set; }
        public string ContactInfo { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public Language Language { get; set; }
        public MessageState State { get; set; }
        public DateTime AddTime { get; set; }
    }
}